package com.cy.milktea.pojo;


import com.cy.milktea.pojo.System.BaseObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Set;


@EqualsAndHashCode(callSuper = true)//将其父类属性也进行比较
@ToString(callSuper = true)//显示其父类属性
@Data
public class Role extends BaseObject implements Serializable {

    private static final long serialVersionUID = 6849894400754667352L;

    private Integer id;  //----------------->角色编号
    private String name;  //---------------->角色名称
    private Integer status;  //------------->状态

    private List<Menu> menus;  //----------->当前角色所含有的菜单
    private List<Integer> menuIds;  //------>当前角色所含的菜单Ids 用于收集前端的数据
    private List<Integer> menuLastChildIds;

    private Set<String> permissions;  //---->当前角色所含有的权限



}
